package cn.scp.qrCode.controller;

import cn.scp.qrCode.service.TestService;
import com.google.zxing.WriterException;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

/**
 * Notice:
 *
 * @author scp
 * @version 1.0
 * @date 2021/4/19
 * @since 1.0
 */
@RestController
public class TestQrCodeController {
    private final TestService service;

    public TestQrCodeController(TestService service) {
        this.service = service;
    }

    @RequestMapping("/hello")
    public String testQrCode() throws IOException, WriterException {
        service.test();
        return "success";
    }

}
